import java.util.Scanner;

public class StringDemo10 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s=sc.next();

        StringBuilder sb=new StringBuilder();
        for(int i=0;i<s.length();i++){
            char c=s.charAt(i);
            sb.append(changeLuoma(c));
        }
        System.out.println(sb);
    }

    public static String changeLuoma(char c){
        String str;
        switch (c){//"Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ"
            case '0'-> str ="";
            case '1'-> str ="Ⅰ";
            case '2'-> str ="Ⅱ";
            case '3'-> str ="Ⅲ";
            case '4'-> str ="Ⅳ";
            case '5'-> str ="Ⅴ";
            case '6'-> str ="Ⅵ";
            case '7'-> str ="Ⅶ";
            case '8'-> str ="Ⅷ";
            case '9'-> str ="Ⅸ";
            default -> str="";

        }
        return str;
    }




    //判断字符串每个字符是否符合0-9
    public static boolean check(String s){
        if(s.length()>9){
            return false;
        }
        for(int i=0;i<s.length();i++){
            char a=s.charAt(i);
            if(a>='0'&&a<='9'){

            }else{
                return false;
            }
        }
        return true;
    }
}

